#include <vector>
#include <iostream>
#include <algorithm>

using namespace std;

bool StrPalindrome(string str){
    string str1 = str;
    reverse(str1.begin(), str1.end());
    return (str == str1);
}

bool StrPalindrome1(string str){
    for(int l = 0, r = str.size() - 1; l < str.size(); ++l, --r){
        if(l >= r){
            break;
        }
        if(str[l] != str[r]){
            return false;
        }
    }
    return true;
}

int main(int argc, char const *argv[])
{   
    string str{"11111"};
    cout << StrPalindrome(str) <<endl;
    return 0;
}
